package com.xframe.event.bus.config;

import com.xframe.event.bus.core.config.ConnectInfoBean;
import com.xframe.event.bus.core.config.EventRunner;
import com.xframe.event.bus.core.msg.ConnectFactory;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
@AutoConfiguration
public class ConfigAutoConfiguration {
    @Bean
    @ConfigurationProperties(prefix = "msg")
    public ConnectInfoBean connectInfoBean() {
        return new ConnectInfoBean();
    }
    @Bean
    public EventRunner eventRunner() {
        return new EventRunner();
    }
}
